package view
{
	import flash.display.Bitmap;
	import flash.display.Sprite;
	
	import model.load.DisplayObjectLoadMessage;
	
	public class RemoteMidImage extends Sprite
	{
		private var loadMsg:DisplayObjectLoadMessage;
		private var dWidth:int;
		private var dHeight:int;
		
		public function RemoteMidImage(width:int,height:int)
		{
			dWidth = width;
			dHeight = height;
			this.mouseChildren = false;
			initLoadMsg();
		}
		
		private function initLoadMsg():void
		{
			loadMsg = new DisplayObjectLoadMessage(loadComplete);
			loadMsg.isTimeOutReload = false;
		}
		
		private function loadComplete(content:Bitmap):void
		{
			content.x = (dWidth - content.width) * .5;
			content.y = (dHeight - content.height) * .5;
			addChild(content);
			
		}
		
		public function load(url:String):void
		{
			
		}
	}
}